f7c67352d2ff639c3b73e60b0a9fe5bc1b208ea8,findbugs/src/java/edu/umd/cs/findbugs/detect/FindSelfComparison.java,FindSelfComparison,checkForSelfOperation,#number#String#,217

Before Change


                                                                   // report
                                                                   // this; more
                                                                   // accurate
                bugAccumulator.accumulateBug(
                        new BugInstance(this, "SA_LOCAL_SELF_" + op, (opCode == ISUB || opCode == LSUB
                                || opCode == INVOKEINTERFACE || opCode == INVOKEVIRTUAL) ? NORMAL_PRIORITY : HIGH_PRIORITY)
                                .addClassAndMethod(this).add(
                                        LocalVariableAnnotation.getLocalVariableAnnotation(getMethod(), whichRegister, getPC(),
                                                getPC() - 1)), this);
            }
        }
    }

After Change


            else if (opCode == IXOR && item0.equals(item1)) {
                LocalVariableAnnotation localVariableAnnotation = LocalVariableAnnotation.getLocalVariableAnnotation(this, item0);
                if (localVariableAnnotation != null)
                    bugAccumulator.accumulateBug(
                            new BugInstance(this, "SA_LOCAL_SELF_" + op, linesDifference > 1 ? NORMAL_PRIORITY : HIGH_PRIORITY).addClassAndMethod(this).add(
                                    localVariableAnnotation), this);
            }
        }
    }